import re


def get_viewstate_eventvalidation(response):
    html = response.text

    dict01 = {}

    raw_viewstate = re.search('id="__VIEWSTATE" value="(.+?)"', html)
    raw_eventvalidation = re.search('id="__EVENTVALIDATION" value="(.+?)"', html)

    if not raw_viewstate and not raw_eventvalidation:
        dict01['__VIEWSTATE'] = raw_viewstate.group(1)
        dict01['__EVENTVALIDATION'] = raw_eventvalidation.group(1)
        return None
    print('get_viewstate_eventvalidation >>>>')
    print(dict01)
    return dict01
